package com.jinlingxiu.app.di

import com.jinlingxiu.app.mvp.contract.MainContract
import com.jinlingxiu.app.mvp.model.MainModel
import com.jinlingxiu.app.mvp.presenter.MainPresenter
import com.jinlingxiu.app.mvp.ui.activity.MainActivity
import org.koin.dsl.module

val MainModule = module {
    scope<MainActivity> {
        scoped<MainContract.Model> { MainModel(get()) }
        scoped {
            MainPresenter(get(), this.getSource())
        }
    }
}
